export const receiveListColumns = [{
        'min-width': '180',
        prop: 'deliverCode',
        label: '发货单号',
        'show-overflow-tooltip': true
    },
    {
        'min-width': '150',
        prop: 'deliverDate',
        label: '发货日期',
        'show-overflow-tooltip': true
    },
    {
        'min-width': '100',
        prop: 'deliverCount',
        label: '发货数量'
    },
    // {
    //     width: '200',
    //     prop: 'productLineName',
    //     label: '产品线',
    //     'show-overflow-tooltip': true
    // },
    // {
    //     width: '100',
    //     prop: 'totalCount',
    //     label: '总数量'
    // },
    {
        'min-width': '120',
        prop: 'deliverStatus',
        label: '状态',
        formatter: row => (DELIVER_STATUS[Number(row.deliverStatus)])
    },
    {
        width: '200',
        prop: 'action',
        label: '操作',
        fixed: 'right'
    }
];

const DELIVER_STATUS = {
    0: '待收货',
    1: '已收货'
}
export const productListColumns = [{
        width: '60',
        type: 'index',
        label: '序号',
    }, {
        width: '180',
        prop: 'deliverCode',
        label: '发货单号',
        'show-overflow-tooltip': true
    },
    {
        width: '160',
        prop: 'deliverDate',
        label: '发货日期',
        'show-overflow-tooltip': true
    },
    {
        width: '120',
        prop: 'seqNo',
        label: '序列号'
    },
    {
        width: '150',
        prop: 'originalProductCode',
        label: '原厂产品编码',
        'show-overflow-tooltip': true
    },
    {
        width: '150',
        prop: 'productCode',
        label: '供应商产品编码',
        'show-overflow-tooltip': true
    },
    {
        width: '300',
        prop: 'productName',
        label: '产品名称(中)',
        'show-overflow-tooltip': true
    },
    {
        width: '120',
        prop: 'specs',
        label: '规格',
        'show-overflow-tooltip': true
    },
    {
        width: '120',
        prop: 'model',
        label: '型号'
    },
    // {
    //     width: '100',
    //     prop: 'deliverCount',
    //     label: '条形码'
    // },
    {
        width: '100',
        prop: 'productUnit',
        label: '单位'
    },
    {
        width: '270',
        prop: 'originalFactoryName',
        label: '生产厂家'
    },
    {
        width: '150',
        prop: 'productLineName',
        label: '产品线',
        'show-overflow-tooltip': true
    },
    {
        width: '160',
        prop: 'batchNo',
        label: '批号'
    },
    {
        width: '150',
        prop: 'manufactureDate',
        label: '生产日期',
        'show-overflow-tooltip': true
    },
    {
        width: '150',
        prop: 'validDate',
        label: '有效期至'
    },
    {
        width: '230',
        prop: 'registCode',
        label: '注册证号',
        'show-overflow-tooltip': true
    },
    {
        width: '120',
        prop: 'deliverCount',
        label: '发货数量'
    },
    {
        width: '100',
        prop: 'deliverPrice',
        label: '单价(元)'
    },
    {
        width: '150',
        prop: 'subTotalAmount',
        label: '金额小计(元)',
        'show-overflow-tooltip': true
    }
];